<template>
  <div>
    <!--  default-active :　默认选中的菜单
            :router="true" true表示开启路由模式,开启之后, index值代表的就是路由地址
    -->
    <el-menu
      :router="true"
      :default-active="$route.path"
      class="el-menu-vertical-demo"
      background-color="#545c64"
      text-color="#fff"
      active-text-color="#ffd04b"
    >
      <el-menu-item-group>
        <span slot="title" class="span-font-size">订单管理</span>
        <el-menu-item index="/order/orderList">
          <i class="el-icon-s-home"></i>
          <span slot="title">订单列表</span>
        </el-menu-item>
        <el-menu-item index="/order/orderConfirm">
          <i class="el-icon-user-solid"></i>
          <span slot="title">确认收货</span>
        </el-menu-item>
        <el-menu-item index="/order/orderWarn">
          <i class="el-icon-s-cooperation"></i>
          <span slot="title">到货提醒</span>
        </el-menu-item>
        <el-menu-item index="/order/orderSetting">
          <i class="el-icon-s-goods"></i>
          <span slot="title">订单设置</span>
        </el-menu-item>
      </el-menu-item-group>
      <el-menu-item-group>
        <span slot="title" class="span-font-size">退款及退货</span>
        <el-menu-item index="/order/goodReturn">
          <i class="el-icon-user"></i>
          <span slot="title">退货申请处理</span>
        </el-menu-item>
        <el-menu-item index="/order/drawBack">
          <i class="el-icon-user"></i>
          <span slot="title">退款申请处理</span>
        </el-menu-item>
        <el-menu-item index="/order/returnSetting">
          <i class="el-icon-user"></i>
          <span slot="title">退回原因设置</span>
        </el-menu-item>
      </el-menu-item-group>
    </el-menu>
  </div>
</template>


<style scoped>
.span-font-size {
  font-size: 16px;
}
.el-menu {
  border-right: none;
}
</style>